package com.ruoyi.article.service;

import com.github.pagehelper.PageInfo;
import com.ruoyi.article.domain.Article;
import com.ruoyi.article.domain.TranslationRequest;
import com.ruoyi.article.domain.VoiceTranslation;
import com.ruoyi.article.dtos.Result;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;


/**
 * asdService接口
 * 
 * @author ruoyi
 * @date 2025-06-19
 */
public interface IArticleService
{
    PageInfo<Article> listArticles(int pageNum, int pageSize,String title);


    Article selectArticleById(String id);

    Result insertArticle(Article article);

    Result deleteArticleByIds(String id);

    Result updateArticleStatus(Long id, int isSublish);

    Result updateArticle(Article article);

    Result cnTranslationEn(TranslationRequest translationRequest) throws IOException;

    Result voiceTranslation(VoiceTranslation voiceTranslation) throws IOException;

    Result uploadVoice(MultipartFile multipartFile);
}
